import request from '@/utils/request'

// 查询模具对应物料信息列表
export function listItdDet(query) {
  return request({
    url: '/project/itdDet/list',
    method: 'get',
    params: query
  })
}

// 查询模具对应物料信息详细
export function getItdDet(itdId) {
  return request({
    url: '/project/itdDet/' + itdId,
    method: 'get'
  })
}

// 新增模具对应物料信息
export function addItdDet(data) {
  return request({
    url: '/project/itdDet',
    method: 'post',
    data: data
  })
}

// 修改模具对应物料信息
export function updateItdDet(data) {
  return request({
    url: '/project/itdDet',
    method: 'put',
    data: data
  })
}

// 删除模具对应物料信息
export function delItdDet(itdId) {
  return request({
    url: '/project/itdDet/' + itdId,
    method: 'delete'
  })
}

// 导出模具对应物料信息
export function exportItdDet(query) {
  return request({
    url: '/project/itdDet/export',
    method: 'get',
    params: query
  })
}
//模具对应物料信息作业标准和图纸信息上传
export function uploadItds(data) {
  return request({
    url: '/project/itdDet/itdFileUploads',
    method: 'post',
    data:data
  })
}

//模具对应物料信息成型参数文件上传
export function uploadItd(data) {
  return request({
    url: '/project/itdDet/itdFileUpload',
    method: 'post',
    data:data
  })
}
//获取定额公差下拉树列表
export function treeSelect(query) {
  return request({
    url: '/project/itdDet/treeselect',
    method: 'get',
    params: query
  })
}

//单击查询文件记录
export function clickItdFileList(query) {
  return request({
    url: '/project/itdDet/clickItdFile',
    method: 'get',
    params: query
  })
}
